home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 August (Alt) / CHIP 2005-08.1.iso / program / guvenlik / syslinux-3.07.exe / layout.inc < prev    next >
Encoding:
Text File  |  2004-12-28  |  1.5 KB  |  56 lines

  1. ; $Id: layout.inc,v 1.1 2004/12/28 06:05:14 hpa Exp $
  2. ; -----------------------------------------------------------------------
  3. ;   
  4. ;   Copyright 1994-2004 H. Peter Anvin - All Rights Reserved
  5. ;
  6. ;   This program is free software; you can redistribute it and/or modify
  7. ;   it under the terms of the GNU General Public License as published by
  8. ;   the Free Software Foundation, Inc., 53 Temple Place Ste 330,
  9. ;   Bostom MA 02111-1307, USA; either version 2 of the License, or
  10. ;   (at your option) any later version; incorporated herein by reference.
  11. ;
  12. ; -----------------------------------------------------------------------
  13.  
  14. ;
  15. ; layout.inc
  16. ;
  17. ; Memory layout of segments
  18. ;
  19.  
  20.  
  21. ; Memory below 0800h is reserved for the BIOS and the MBR
  22. BSS_START    equ 0800h
  23.  
  24. ; PXELINUX needs lots of BSS, so it relocates itself on startup
  25. %if IS_PXELINUX
  26. TEXT_START    equ 9000h
  27. %else
  28. TEXT_START    equ 7C00h
  29. %endif
  30.  
  31. %ifdef MAP
  32.         [map all MAP]
  33. %endif
  34.  
  35. ;
  36. ; The various sections and their relationship
  37. ;
  38.         org TEXT_START
  39.  
  40.         ; NASM BUG: refers to hacks to handle NASM 0.98.38 bugs; might need
  41.         ; conditional compilation
  42.     
  43.         section .earlybss nobits start=BSS_START
  44.         section .bcopy32  align=4 valign=16 follows=.data vfollows=.earlybss
  45.         ; NASM BUG: follows= here should be vfollows=
  46.         section .bss      nobits align=256 follows=.bcopy32
  47.  
  48.         section .text      start=TEXT_START
  49.         ; NASM BUG: follows=.text not accepted here
  50.         section .data      align=16 ; follows=.text
  51.  
  52.         ; NASM BUG: We would like to do follows=.bcopy32
  53.         section .latebss  nobits align=16 start=0E000h
  54.  
  55.  
  56.